package service

import (
	"fabric-explorer/dao"
	"fabric-explorer/entity"

	"go.mongodb.org/mongo-driver/bson"
)

//获得所有的blockData
func GetAllblockData() []entity.BlockData {
	return dao.FindBlockDataList(bson.D{})
}

//删除所有的blockData数据
func DeleteAllblockData() {
	dao.DeleteblockData(bson.D{})
}
